package com.ruoyi.exam.domain.entity;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考试试卷对象 t_exam_paper
 *
 * @author ruoyi
 * @date 2024-12-17
 */
public class ExamPaper extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键，试卷ID
     */
    private Long id;

    /**
     * 试卷名称
     */
    @Excel(name = "试卷名称")
    private String name;

    /**
     * 试卷总分
     */
    @Excel(name = "试卷总分")
    private Double score;

    /**
     * 建议答题时间，单位分钟
     */
    @Excel(name = "建议答题时间，单位分钟")
    private Long suggestTime;

    /**
     * 是否删除，1表示已删除
     */
    @Excel(name = "是否删除，1表示已删除")
    private Integer deleted;

    /**
     * 工种类别，运营类等
     */
    @Excel(name = "工种类别，运营类等")
    private Integer jobCategory;
    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;
    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;

    // 关联题目表，一对多关系
    /**
     * 角色对象
     */
    private List<ExamPaperQuestion> examPaperQuestions;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Double getScore() {
        return score;
    }

    public void setSuggestTime(Long suggestTime) {
        this.suggestTime = suggestTime;
    }

    public Long getSuggestTime() {
        return suggestTime;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setJobCategory(Integer jobCategory) {
        this.jobCategory = jobCategory;
    }

    public Integer getJobCategory() {
        return jobCategory;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public List<ExamPaperQuestion> getExamPaperQuestions() {
        return examPaperQuestions;
    }

    public void setExamPaperQuestions(List<ExamPaperQuestion> examPaperQuestions) {
        this.examPaperQuestions = examPaperQuestions;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("score", getScore())
                .append("suggestTime", getSuggestTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("jobCategory", getJobCategory())
                .append("deptId", getDeptId())
                .toString();
    }
}
